require(["config"],function(){
	require(["jquery","template","header"],function($,template){
		function List(){
			this.renderList();
		}
		List.prototype = {
			constructor:List,
			//渲染列表数据
			renderList:function(){
				$.ajax("http://rap2api.taobao.org/app/mock/87071/api/list")
				 .done(function(data){
				 	var data = {list:data.res_body.list};
				 	//渲染
				 	var html = template("list_template",data);
				 	$(".prod_list").html(html);
				 });
			}
		}
		new List();
	});
});
